home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / shoot_em_in.swf / scripts / DefineSprite_136 / frame_2 / DoAction.as
Text File  |  2007-01-15  |  782b  |  46 lines

  1. _scale = 50;
  2. _focale = 20;
  3. _Yfloor = 20;
  4. if(_parent._yoffset == undefined)
  5. {
  6.    _yoffset = -150;
  7. }
  8. else
  9. {
  10.    _yoffset = _parent._yoffset;
  11. }
  12. if(_parent._xoffset == undefined)
  13. {
  14.    _xoffset = 176;
  15. }
  16. else
  17. {
  18.    _xoffset = _parent._xoffset;
  19. }
  20. ldball = 0.22;
  21. ldpot = 0.12;
  22. ldzone = 10;
  23. ldwall = 0.8;
  24. lplayerHeight = 1.8;
  25. call("collisions");
  26. call("fonctions");
  27. call("goal");
  28. call("wall");
  29. call("wind");
  30. v3DPoint = new Object();
  31. v3DPoint.x = 0;
  32. v3DPoint.y = 0;
  33. v3DPoint.z = 0;
  34. v3DPoint.scale = 0;
  35. v2DPoint = new Object();
  36. v2DPoint.x = 0;
  37. v2DPoint.y = 0;
  38. v2DPoint.z = 0;
  39. vxbut = 0;
  40. vybut = _Yfloor;
  41. vzbut = 50;
  42. lScale = _scale * _Focale / (_Focale + vzbut);
  43. vsxbut = lScale * vxbut + _xoffset;
  44. vsybut = lScale * vybut + _yoffset;
  45. gotoAndPlay(8);
  46.